/*
 * UART_WR.c
 *
 *  Created on: Oct 21, 2021
 *  Author: yanjinkang
 */
#include"UART_WR_PRINT.h"
#include "stdio.h"
#ifdef __GNUC__
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#else
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
#endif


PUTCHAR_PROTOTYPE
{
	HAL_UART_Transmit(&huart1,(uint8_t*)&ch, 1, 0xFFFFFFFF);
	return ch;
}


